<template>
  <div>
  <h1 v-html="msg"></h1>
  <h2 v-text="msg"></h2>
</div>
</template>

<script setup lang="ts">
import { ref } from "vue";

const msg=ref('<button>点我试试</button>')
</script>

<style>

</style>